﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for BasePage
/// </summary>
public class BasePage : System.Web.UI.Page
{
    public BasePage()
    {
        this.PreRender += new EventHandler(BasePage_PreRender);
        this.PreInit += new EventHandler(BasePage_PreInit);
    }

    void BasePage_PreInit(object sender, EventArgs e)
    {
        this.Theme = "Monochrome";
    }

    void BasePage_PreRender(object sender, EventArgs e)
    {
        if (String.IsNullOrWhiteSpace(this.Title))
        {
            throw new ArgumentNullException("Page Title");
        }
    }

}